<?php 
session_cache_expire(999999999);
if(!isset($_SESSION)) 
{ 
	session_start(); 
}
if(!isset($_SESSION['user'])){
	echo "timeout";
}else{

if(isset($_REQUEST['vitri']) && isset($_REQUEST['vidviewpro'])){
	$vitri=$_REQUEST['vitri'];
	$vidviewpro=$_REQUEST['vidviewpro'];
	$lang = $_SESSION['lang'];
	if (empty($lang) || $lang == "EN") {
		include '../value/value_en.php';
	} else if($lang == "VN") {
		include '../value/value_vn.php';
	}
	else {
		include '../value/value_kr.php';
	}
	include '../operations/connection.php';
	include 'nf_objnewfeature.php';
	if(isset($_SESSION['listnewfeature'][$vitri])){
		$obj= new nf_newfeature();
		$obj=unserialize (serialize($_SESSION['listnewfeature'][$vitri]));
		?>
		<td class="rf-dt-c" style="width:5% ;vertical-align: middle; text-align: center;min-width: 5%"><?=$vitri?></td>
		<td class="rf-dt-c" style="width:9%;vertical-align: middle; text-align: center;min-width: 9%"><?=($vidviewpro.'-'.$obj->nf_order)?></td>
		<td class="rf-dt-c" style="padding: 7px; vertical-align: middle; width: 50%;cursor: pointer;" onclick="showcomment_newfunction(<?=$vitri?>,'<?=$obj->nfid?>')">
			<div class="rowMinHeight" align="left" style="width: 97%;" >
				<span class="titleError"><a><?=$obj->nf_title?></a></span>
				<div class="writeBy">
					<div align="right" style="width: 99%; float: left;">
					<span>
						<?php 
							$s1="select nf_contentcomment,nf_employee_name from pr_newfunction_comment where nfid_newfunction='".$obj->nfid."' order by nf_datecomment desc limit 0,1";
							$rs=mysql_query($s1);
							while($r=mysql_fetch_array($rs)){
								$chuoi=chop(stripslashes($r['nf_contentcomment']));
								if(isset($chuoi[27])){
									echo substr($chuoi,0,27)."...(".$r['nf_employee_name'].")";
								}else{
									echo $chuoi." (".$r['nf_employee_name'].")";
								}
							}
						?>
					</span>
					</div>
				</div>
			</div>
		</td>
		<td class="rf-dt-c" style="vertical-align: middle; text-align: center; width: 11%;"><?=$obj->nf_employee_name?></td>
		<td class="rf-dt-c" style="vertical-align: middle; text-align: center; width: 10%;"><?=$obj->nf_createdate?></td>
		<td class="rf-dt-c" style="vertical-align: middle; width: 15%;">
			<div class="divInButton" style="text-align: center;">
				<span title="<?=$l_View?>" onmouseover="this.style.cursor='pointer'" onmouseout="this.style.cursor='default'" onclick="showcomment_newfunction(<?=$vitri?>,'<?=$obj->nfid?>')" class="titleError" style="width: 60px" class="odd1" >
					<img src="images/p-view.png" alt="<?php echo $l_View?>" /> 
				</span>
			</div>
		</td>
		<?php 
		}
	}
}
?>